package com.forum.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.Api;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

@Data
@TableName("dataevaluation")
@Api("资料评论表")
public class DataevaluationEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    //构造方法
    public DataevaluationEntity() {

    }

    public DataevaluationEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    /**
     * 主键
     */
    private Long id;

    /**
     * 创建时间
     */
    private Date addtime;

    /**
     * 关联表id
     */
    @TableField("RefId")
    private Long refid;

    /**
     * 用户id
     */
    @TableField("UserId")
    private Long userid;

    /**
     * 头像
     */
    @TableField("Avatarurl")
    private String avatrurl;

    /**
     * 用户名
     */
    @TableField("NickName")
    private String nickname;

    /**
     * 评论内容
     */
    @TableField("Content")
    private String content;

    /**
     * 回复内容
     */
    @TableField("Reply")
    private String reply;
}
